<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- <script>
			function showTime(){
				var d=new Date();
				//document.write(d.toLocaleString());
				document.getElementById("time").innerHTML=d.toLocaleString();
				
			}
			showTime();//有错误
			window.setInterval("showTime()",1000);
		</script> -->
	</head>
	<body>
		<div id="time"></div>
	</body>
	<script>
		function showTime(){
			var d=new Date();
			//document.write(d.toLocaleString());
			document.getElementById("time").innerHTML=d.toLocaleString();
			
		}
		showTime();//有错误
		window.setInterval("showTime()",1000);
	</script>
</html>
